import {request} from "umi";
export async function listStockInOrderVoByPage(body: RequestParam<API.StockInOrderDTO>, options?: { [key: string]: any }){
  return request<BaseResponse<IPage<API.StockInOrderVo>>>('/api/stockIn/list',{
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  })
}
export async function addStockInOrder(body: StockInDTO, options?: { [key: string]: any }){
  return request<BaseResponse<boolean>>('/api/stockIn/add',{
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  })
}
export async function approvalStockInOrder(body: {data: string}, options?: { [key: string]: any }){
  return request<BaseResponse<boolean>>('/api/stockIn/approval',{
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  })
}
export async function getStockInDetailsVo(params: {id: string}, options?: { [key: string]: any }){
  return request<BaseResponse<StockInOrderDetailsVo>>('/api/stockIn/',{
    method: 'GET',
    params: params,
  })
}
